package com.carleasoft.mps.cms.business.resource.constans;

import com.carleasoft.mps.cms.business.clerk.constants.ProcessTypeEnum;

/**
 * @author: yangHao
 * @createDate:2023/5/18
 * @description:
 */
public enum LibraryEnum {


    TO_BE_RELEASED(1, "电教库"),
    NOT_PASS(2, "教案库"),
    RELEASE(3, "课件库"),
    FINISH(4, "理论库"),
    DELETE(5, "试题库"),
    DEFAULT(6, "战例库"),
    PENDING_REVIEW(7, "案例库"),
    MESSAGE_REVIEW(8, "想定库"),
    ;

    private Integer code;

    private String message;

    LibraryEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }


    public static String getPaymentType(int value) {
        for (LibraryEnum paymentTypeEnum : LibraryEnum.values()) {
            if (value == paymentTypeEnum.getCode()) {
                return paymentTypeEnum.getMessage();
            }
        }
        return null;
    }
}
